import java.util.Scanner;

public class Main21 {
    //21、输入一个年份，判断是否是闰年。
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        if(n%400==0||(n%4==0&&n%100!=0)){
            System.out.println(n + "是闰年");
        }else {
            System.out.println(n + "不是闰年");
        }
    }
}
